﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Models
{
    /// <summary>
    /// 文件数据模型类
    /// </summary>
    /// <remarks>
    /// 用于在服务端和客户端之间传递文件信息的统一数据模型
    /// </remarks>
    public class FileData
    {
        /// <summary>
        /// 获取或设置文件名
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 获取或设置文件大小（字节）
        /// </summary>
        public long Size { get; set; }

        /// <summary>
        /// 获取或设置文件最后修改时间
        /// </summary>
        public DateTime LastModified { get; set; }

        /// <summary>
        /// 获取或设置文件完整路径
        /// </summary>
        public string Path { get; set; } = string.Empty;

        /// <summary>
        /// 获取或设置文件扩展名
        /// </summary>
        public string Extension { get; set; } = string.Empty;
    }
}
